<?php

function displayMenu() {
?>
<div id="top" align="center">
	<div id="tags" align="center" style="display:none;">
		<p>No video, no tags!</p>
	</div>
	<table class="menutable" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td valign="top">
			<a href="logout.php" title="Logout"><img src="images/logout.gif" border="0"
align="top" vspace="3" hspace="1"></a>&nbsp;
		</td>
		<td valign="top">
			<a href="javascript:refresh()" title="Refresh"><img src="images/refresh.gif" border="0"
align="top" vspace="3" hspace="1" /></a>&nbsp;
		</td>
		<td valign="top">
			<a href="#prefs" rel="facebox"><span style="color:white;"><img src="images/prefs.gif" border="0" align="top" vspace="3" hspace="1" /></span></a>&nbsp;
		</td>
		<td valign="top">
			<form onSubmit="return false;">
				<input type="text" id="search" name="search" size="8" maxlength="30" />
				<input type="button" onclick="javascript:stopScroll();getSearch(document.getElementById('search').value,1);" value="search" />
			</form>
		</td>
		</tr>
	</table>
	<div id="timelineMenu">
		<a href="javascript:stopScroll();scrollPublicTimeline('yes')">Public</a> |
		<a href="javascript:stopScroll();scrollFriendsTimeline('yes')">Friends</a> |
		<a href="javascript:stopScroll();scrollInboxTimeline('yes')">Inbox</a> |
		<a href="javascript:stopScroll();scrollSentTimeline('yes')">Sent</a> |
		<a href="javascript:stopScroll();showTagCloud()">Tags</a>
		<div id="loadingImage"><img src="images/alpha.gif" width="64" height="10" border="0" vspace="1" /></div>
	</div>
</div>
<div id="prefs" align="center" style="display:none;">
<!-- language -->
<p>
	<form name="prefsform" action="<? echo $_SERVER['PHP_SELF'] ?>" method="get">
		<span style="color:black;font-size: 100%;font-family: arial, 'lucida console', sans-serif;">preferences</span>
		<br />
		<span style="color:black;font-size: 75%;font-family: arial, 'lucida console', sans-serif;">languages</span>
		<br />
		<select name="lan">
			<option value="all" <? if($_SESSION['lan']=="all") echo "selected" ?>>all</option>
			<option value="en" <? if($_SESSION['lan']=="en") echo "selected" ?>>en</option>
			<option value="fr" <? if($_SESSION['lan']=="fr") echo "selected" ?>>fr</option>
			<option value="es" <? if($_SESSION['lan']=="es") echo "selected" ?>>es</option>
			<option value="de" <? if($_SESSION['lan']=="de") echo "selected" ?>>de</option>
			<option value="ja" <? if($_SESSION['lan']=="ja") echo "selected" ?>>ja</option>
			<option value="it" <? if($_SESSION['lan']=="it") echo "selected" ?>>it</option>
			<option value="nl" <? if($_SESSION['lan']=="nl") echo "selected" ?>>nl</option>
			<option value="zh" <? if($_SESSION['lan']=="zh") echo "selected" ?>>zh</option>
			<option value="ru" <? if($_SESSION['lan']=="ru") echo "selected" ?>>ru</option>
			<option value="ko" <? if($_SESSION['lan']=="ko") echo "selected" ?>>ko</option>
		</select>
		<br />
		<span style="color:black;font-size: 75%;font-family: arial, 'lucida console', sans-serif;">video size</span>
		<br />
		<select name="player">
			<option value="small" <? if($_SESSION['player']=="small") echo "selected" ?>>small</option>
			<option value="medium" <? if($_SESSION['player']=="medium") echo "selected" ?>>medium</option>
			<option value="large" <? if($_SESSION['player']=="large") echo "selected" ?>>large</option>
			<option value="xlarge" <? if($_SESSION['player']=="xlarge") echo "selected" ?>>xlarge</option>
		</select>
		<br />
		<span style="color:black;font-size: 75%;font-family: arial, 'lucida console', sans-serif;">videos in timeline</span>
		<br />
		<select name="squantity">
			<? for ($i=1;$i<=50;$i++) {
				echo "<option value=$i";
				if ($i == $_SESSION['squantity']) echo " selected";
				echo ">$i</option>";
			 } ?>
		</select>
		<br />
		<span style="color:black;font-size: 75%;font-family: arial, 'lucida console', sans-serif;">timeline height (px)</span>
		<br />
		<input type="text" name="sheight" size="4" maxlength="10" value="<? echo $_SESSION['sheight'] ?>"></input>
		<br />
		<br />
		<span style="color:black;font-size: 75%;font-family: arial, 'lucida console', sans-serif;">show Qik videos?
		<br />
		yes <input type="radio" name="qikStatus" value="on" <? if($_SESSION['qikStatus']=="on") echo "checked"; ?>>
		no <input type="radio" name="qikStatus" value="off" <? if($_SESSION['qikStatus']=="off") echo "checked"; ?>>
		</span>
		<br />
		<br />
		<input type="submit" value="save prefs">
	</form>
</p>
</div>
<?php
}
?>